.first-template__container {
  background: transparent;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
  gap: 60px;
  padding: 4rem 0;
  max-width: 360px;
  height: 640px;
}

.first-template__image {
  max-width: 150px;
}
.first-template__image img {
  width: 100%;
  /* height: 100%; */
  object-fit: contain;
}

.first-template__container h2 {
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
  text-transform: uppercase;
  font-family: inter;
}
.first-template__container h2 span {
  color: #ffffff;
}
.first-template__container span {
  color: #ffffff;
  font-size: 16px;
  font-family: dana;
}

.first-template__frame {
  border-radius: 28px;

  /* template-container__frame width&height */
  width: 224px;
  height: 56px;
  display: flex;
  justify-content: space-between;
}
.first-template__frame a {
  height: 48px;
  width: 48px;
  background-color: #de7129;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

div#address, div#club, div#instagram{
  gap: 0px;
}

/* div#website a, div#club a, div#instagram a, div#address div {
  max-height: 42px;
  padding: 4px;
  border: 2px solid black;
  border-radius: 21px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.45);
} */

a#earth img , div#club img, div#website img  , div#address img  {
  width: 32px;
}

#overlay{
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
#overlay.earth div.modal-content{
  width: 350px;
  position: unset;
  top: unset;
  right: unset;
  background: rgba(255, 255, 255, 0.1); 
  z-index: 1;  
}
#overlay.earth div.modal-content div{
  min-height: fit-content !important;
}
#overlay.earth div.modal-content #close{
  align-items: baseline;
  padding-right: 7px;
}
#overlay.earth div.modal-content #close span{
  cursor: pointer;
}
#overlay.earth div.modal-content div.details{
  gap: 27px;
}
#overlay.earth .social-media{
  flex-direction: row;
  gap: 30px;
}
#overlay.earth .social-media a{
  cursor: pointer;
}
#overlay.earth #address{
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  column-gap: 18px;
  font-size: 15px;
}

.first-template__pages {
  bottom: 17px;

  display: flex;
  gap: 5px;
}
.first-template__pages div {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #d9d9d9;
}

.first-template__pages div:first-child {
  width: 16px;
  background-color: #de7129;
  border-radius: 4px;
}

#event {
  font-family: dana;
  position: fixed;
  background-color: #dc9442;
  top: -80px;
  z-index: 100;
  width: 100%;
  transition: 1s;
  opacity: 0;
  padding: 10px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  color: #fff;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
#event p {
  text-align: center;
}
#event button {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  background-color: transparent;
}

@media screen and (min-width:365px) {
  #overlay.earth div.modal-content{
    width: 350px;
  }
}
@media screen and (max-width:367px) {
  #overlay.earth div.modal-content{
    width: 290px;
  }
}

.modal-content,
#overlay.earth .social-media {
  overflow: visible;
}


/* base circle button */
#overlay.earth .social-media a{
  position: relative;            /* for pseudo-elements */
  width: 46px;                   /* outer diameter of the button */
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;                    /* above pseudo-elements */
  text-decoration: none;
  overflow: visible;             /* allow rings outside bounds */
  -webkit-backdrop-filter: none; /* avoid double blur issues */
}

/* white outer ring */
#overlay.earth .social-media a::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -38%);
  width: calc(43% + 12px);   /* slightly bigger than button */
  height: calc(43% + 12px);
  border-radius: 50%;
  background: transparent;
  border: 3px solid rgb(56 47 47 / 18%); /* bright thin ring */
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25)); /* extra pop */
}

/* inner dark ring (between outer ring and icon) */
#overlay.earth .social-media a::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 69%;                 /* smaller ring inside */
  height: 69%;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #fff;  /* dark inner ring */
  z-index: 1;
  pointer-events: none;
}

/* make sure the icon image stays on top and sized */
#overlay.earth .social-media a img{
  position: relative;
  z-index: 3;
  width: 25px !important;
  /* height: 25px !important; */
  display: block;
  object-fit: contain;
}
div#address div img{
  width: 25px !important;
}

#club img{
  margin-bottom: -1px;
}
#website img{
  margin-bottom: -3px;
}